package com.platform.module.admin.scheduled;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 兑换码扣减定时任务
 */

@Component
@Slf4j
@AllArgsConstructor
public class TestScheduled {


    @Scheduled(cron = "0 0/2 * * * ?")
    public void testScheduled() {
        log.info("TestScheduled.testScheduled -> 测试 执行定时两分钟执行一次");
    }

}
